home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-01-12 | 956 b | 31 lines | [TEXT/GEOL] |
- Item 2163862 7-Jan-90 09:58
-
- From: D1165 Esha, David C Hands,PRT
-
- To: TERRAN Cyberex, Terran Van Wagner,PRT
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: Re: IControl ignoring itsDoc…
-
- Perhaps you could subclass the controls that need to reference a document and
- add an explicit reference field to your document. i.e.
-
- PROCEDURE TMyControl.IRes(…);OVERRIDE;
- BEGIN
- INHERITED IRes(…);
- fMyDocument := TMyDocument(itsDocument);
- END;
-
- This would avoid any problems that might arise by overriding TControl.IRes and
- passing itsDocument instead of NIL. From what I can see the document's view
- list is used by MacApp for finding printable views. I don't know what harm or
- good it would do to add controls to this list (and thereby have valid document
- references in the fDocument field).
-
- hope this helps,
-
- David Hands
- ESHA Research
-
-